package design.create.singleton;

/**
 * 饿汉式: 预先创建一个对像,后面的访问都返回同一个对像
 *
 *
 * @author zxs
 * @since 2020/05/21
 */
public class HungerSingleton {

    private final static HungerSingleton SINGLETON = new HungerSingleton();

    private HungerSingleton(){}

    public static HungerSingleton getInstance(){
        return  SINGLETON;
    }
}
